package com.ssy.lingxi.member.merchant.model.vo.platform.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 平台后台 - 菜单管理 - 新增或修改按钮
 * @author 万宁
 * @version 2.0.0
 * @date 2022-04-14
 */
public class PlatformButtonUpdateVO implements Serializable {
    private static final long serialVersionUID = -5085410765754272235L;

    /**
     * 按钮Id，大于0表示修改，为0或null表示新增
     */
    private Long buttonId;

    /**
     * 按钮标识
     */
    @NotNull(message = "按钮标识不能为空")
    @Size(max = 100, message = "按钮标识最长100个字符")
    private String code;

    /**
     * 按钮名称
     */
    @NotNull(message = "按钮名称不能为空")
    @Size(max = 50, message = "按钮名称最长50个字符")
    private String name;

    /**
     * 按钮说明
     */
    @Size(max = 100, message = "按钮说明最长100个字符")
    private String remark;

    public Long getButtonId() {
        return buttonId;
    }

    public void setButtonId(Long buttonId) {
        this.buttonId = buttonId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
